﻿using System;
using System.Collections.Generic;
using KZ.Utilities;
namespace KZ.Express.H.ENT
{
    public class PriceListDetailENT : BaseENT
    {
        public PriceListDetailENT()
        {
        }

        public PriceListDetailENT(PriceListDetailENT priceListDetail)
        {
            this.PriceListID = priceListDetail.PriceListID;
            this.Type = priceListDetail.Type;
            this.Zone = priceListDetail.Zone;
            this.FromWeight = priceListDetail.FromWeight;
            this.ToWeight = priceListDetail.ToWeight;
            this.ListPrice = priceListDetail.ListPrice;
        }
        [Output]
        public int? PriceListDetailID { get; set; }


        public int PriceListID { get; set; }


        public string Type { get; set; }


        public string Zone { get; set; }


        public decimal FromWeight { get; set; }


        public decimal ToWeight { get; set; }


        public decimal ListPrice { get; set; }


        [NotInsertUpdate]
        public bool IsDeleted { get; set; }

        public int CreatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? CreatedDate { get; set; }

        public int UpdatedBy { get; set; }

        [NotInsertUpdate]
        public DateTime? UpdatedDate { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "PriceListDetails"; } }

        [NotInsertUpdate]
        public override string PrimaryKey { get { return "PriceListDetailID"; } }

        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_PriceListDetail_Insert"; } }

        [NotInsertUpdate]
        public override string UpdateProcedure { get { return "proc_PriceListDetail_Update"; } }

        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_PriceListDetail_Select"; } }

        public readonly static string DeleteByPriceListIDProcedure = "proc_PriceListDetail_Delete";

        public readonly static string InsertLogProcedure = "proc_PriceListDetail_Log";

        public readonly static string SelectPriceProcedure = "proc_PriceListDetail_Select_Price";

        public readonly static string SelectContentProcedure = "proc_PriceListDetail_Select_Content";
    }
}